package com.yunshang.shoppingmall.service.impl;

import com.yunshang.shoppingmall.entity.ProductGuigePrice;
import com.yunshang.shoppingmall.mapper.ProductGuigePriceMapper;
import com.yunshang.shoppingmall.service.ProductGuigePriceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service("productGuigePriceService")
public class ProductGuigePriceServiceImpl implements ProductGuigePriceService {

    @Autowired
    ProductGuigePriceMapper productGuigePriceMapper;
    @Override
    public int insert(ProductGuigePrice record) {
        return  productGuigePriceMapper.insert(record);
    }

    @Override
    public int insertSelective(ProductGuigePrice record) {
        return productGuigePriceMapper.insertSelective(record);
    }

    @Override
    public List<ProductGuigePrice> selectProductGuigePriceByActiveSignAndUpState(ProductGuigePrice productGuigePrice) {
        return productGuigePriceMapper.selectProductGuigePriceByActiveSignAndUpState(productGuigePrice);
    }

    @Override
    public List<ProductGuigePrice> selectProductGuigePriceById(ProductGuigePrice productGuigePrice) {
        return productGuigePriceMapper.selectProductGuigePriceById(productGuigePrice);
    }

}
